import request from '@/router/axios';


export const getList = (params) => {
    return request({
      url: '/api/function-api/eventmessage/pageList',
      method: 'post',
      params: params
    })
  }

  export const add = (row) => {
    return request({
      url: '/api/function-api/eventmessage/add',
      method: 'post',
      data: row
    })
  }
  export const update = (row) => {
    return request({
      url: '/api/function-api/eventmessage/update',
      method: 'post',
      data: row
    })
  }
  export const changeState = (row) => {
    return request({
      url: '/api/function-api/eventmessage/change-state',
      method: 'post',
      params: row
    })
  }
  //订阅
  export const mount = (row) => {
    return request({
      url: '/api/function-api/eventmessage/mount',
      method: 'post',
      data: row
    })
  }
  //发送
  export const sending = (row) => {
    return request({
      url: '/api/function-api/eventmessage/sending',
      method: 'post',
      data: row
    })
  }
  export const details = (row) => {
    return request({
      url: '/api/function-api/eventmessage/details',
      method: 'post',
      data: row
    })
  }

  export const getLogList = (params) => {
    return request({
      url: '/api/function-api/eventlog/pageList',
      method: 'post',
      params: params
    })
  }

  // clearLog

  //清理日志
export const clearLog = (params) => {
  return request({
    url: '/api/function-api/eventlog/clearLog',
    method: 'post',
    params: params
  })
}